# Contributor: Maarten van Gompel <proycon@anaproy.nl>
# Maintainer: Maarten van Gompel <proycon@anaproy.nl>
pkgname=ucto
pkgver=0.32.1
pkgrel=0
pkgdesc="advanced rule-based (regular-expression) and unicode-aware tokenizer for various languages"
arch="all"
options="!check"
url="https://github.com/LanguageMachines/ucto"
license="GPL-3.0-only"
depends="uctodata"
makedepends="libtool libxml2-dev libfolia-dev ticcutils-dev icu-dev
	libexttextcat-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/LanguageMachines/ucto/releases/download/v$pkgver/ucto-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR=$pkgdir install
}

sha512sums="
9d382b8af8e1321856f5e30a092baa5f969075822b799b234ede43a450712c6d61ba67f4fe87d13fc10e963c2b56352cdc2ec57fc21e82e0198e16a1ce613766  ucto-0.32.1.tar.gz
"
